package net.lab1024.smartadmin.module.weapp.users.domain.bo;

import lombok.Getter;
import net.lab1024.smartadmin.module.system.employee.domain.entity.EmployeeEntity;
import net.lab1024.smartadmin.module.weapp.users.domain.entity.UsersEntity;


@Getter
public class WxUsersBO {

    /**
     * 主键
     */
    private Long wid;

    /**
     * 关联后台登入账号
     */
    private Long uid;

    /**
     * openid
     */
    private String openid;

    /**
     * nick_name
     */
    private String nickName;

    /**
     * avatar_url
     */
    private String avatarUrl;

    /**
     * gender
     */
    private String gender;

    /**
     * city
     */
    private String city;

    /**
     * province
     */
    private String province;

    /**
     * country
     */
    private String country;

    public WxUsersBO(UsersEntity usersEntity) {
        this.wid = usersEntity.getWid();
        this.uid = usersEntity.getUid();
        this.openid = usersEntity.getOpenid();
        this.nickName = usersEntity.getNickName();
        this.avatarUrl = usersEntity.getAvatarUrl();
        this.gender = usersEntity.getGender();
        this.city = usersEntity.getCity();
        this.province = usersEntity.getProvince();
        this.country = usersEntity.getCountry();
    }

}
